<template>
	<view class="">
<!-- 		<view v-for="(item,index) in likeList" class="oneGoods" :key="index">
			<image :src="item.galleryAvatar" mode=""></image>
			<text>{{item. groupName}}</text>
			<view class="">
				<image src="../../static/image/goods.png" mode=""></image>
				<text>* {{item.likeNumber}}</text>
			</view>
			<text>{{item.galleryNickname}}</text>
		</view> -->
		<view class="">
			<view class="title">
				<view v-for="(item,index) in likeList" :key="index" class="">
					<view v-for="(item1,index1) in item.groupGolferList" :key="index1" class="">
						<image class="headImgBorder" :src="item1.avatar?item1.avatar:'../../static/image/mine_0.png'" mode=""></image>
						<text>{{item1.nickname}}</text>
					</view>
				</view>
				 <image class="pkImg" src='../../static/image/pkimg.png'></image>
			</view>
			<view class="contents">
				<view  class="left">
					<view v-for="(item,index) in likeList[0].groupLikeList" class="">
					<text>{{index+1}}</text>
					<view class="">
						<image  class="headImg headImgBorder" :src="item.galleryAvatar?item.galleryAvatar:'../../static/image/mine_0.png'" mode=""></image>
						<text>{{item.galleryNickname}}</text>
					</view>
					<view class="">
						<text>{{item.likeNumber}}</text>
						<image class="likeImg" src="../../static/image/goods.png" mode=""></image>
					</view>
					</view>
				</view>
<view  class="left right">
					<view v-for="(item,index) in likeList[1].groupLikeList" class="">
					<text>{{index+1}}</text>
					<view class="">
						<image class="headImg headImgBorder" :src="item.galleryAvatar?item.galleryAvatar:'../../static/image/mine_0.png'" mode=""></image>
						<text>{{item.galleryNickname}}</text>
					</view>
					<view class="">
						<text>{{item.likeNumber}}</text>
						<image class="likeImg" src="../../static/image/goods.png" mode=""></image>
					</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import goodsList from '@/components/goodsList/goodsList.vue';
export default {
	data() {
		return {
			tabIndex: 0,
			tabsList: [],
			showTabs: 1,
			pkId: '',
			groupList: [],
			likeList:[]
		};
	},
	components: {
		goodsList
	},
	computed: {

	},
	props: {

	},
	onLoad(option) {
		this.pkId=option.id
		this.getLikeList()
	},
	created() {
		console.log('1212');
	},
	watch: {

	},
	methods: {
		getLikeList(){
			this.$api.score
				.getLikeList({
					data: {
						pkId: this.pkId
					}
				})
				.then(res => {
					this.likeList=res.data.data
					console.log(this.likeList);
				});
		},
	}
};
</script>

<style scoped lang="scss">
	.title{
		width:702rpx;
		height:118rpx;
		border-radius:4px;
		display: flex;
		justify-content: space-between;
		margin: auto;
		margin-top: 33rpx;
		margin-bottom: 24rpx;
		position: relative;
		.pkImg{
			position: absolute;
			  left: 0;
			  bottom: 0;
			  display: block;
			  width: 100%;
			  z-index: -999;
			  height: 100%;
		}
		// background-image: url(../../static/image/pkimg.png);
		view{
			display: flex;
			width: 45%;
			justify-content: space-evenly;
			view{
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				image{
					width:36rpx;
					height:36rpx;
				}
				text{
					font-size:20rpx;
					color:rgba(255,255,255,1);
					display: inline-block;
					width: 88rpx;
					text-align: center;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}
			}
		}
	}
	.contents{
		width:702rpx;
		// height:588rpx;
		display: flex;
		justify-content: space-between;
		margin: auto;
		.left{
			width: 50%;
			background-color: #D0E0FF;
			display: flex;
			flex-direction: column;
			view{
				height: 98rpx;
				padding: 16rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
			>text{
				font-size:36rpx;
				font-family:PingFangSC-Semibold,PingFang SC;
				font-weight:600;
				color:rgba(60,126,255,1);
				line-height:50rpx;
			}
			view{
				display: flex;
				align-items: center;
				.headImg{
					width:34rpx;
					height:34rpx;
				}
				.likeImg{
					width:22rpx;
					height:22rpx;
					margin-left: 17rpx;
				}
				text{
					display: block;
					overflow: hidden; /*溢出隐藏*/
					text-overflow: ellipsis; /*以省略号...显示*/
					white-space: nowrap; /*强制不换行*/
					font-size:20rpx;
					font-family:PingFangSC-Regular,PingFang SC;
					font-weight:400;
					color:rgba(51,51,51,1);
				}
			}
			}
		}
		.right{
			width: 50%;
			background-color: #FFD5D5;
			>text{
				font-size:36rpx;
				font-family:PingFangSC-Semibold,PingFang SC;
				font-weight:600;
				color:rgba(60,126,255,1);
				line-height:50rpx;
			}
		}
	}
.golf-adjust {
	width: 108rpx;
	height: 44rpx;
	background: rgba(0, 193, 92, 1);
	border-radius: 4px;
	text-align: center;
	line-height: 44rpx;
	font-size: 24rpx;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: rgba(255, 255, 255, 1);
	line-height: 44rpx;
}
.golf-title {
	height: 40rpx;
	margin: 30rpx 0;
	margin-right: 24rpx;
}
.totals {
	display: flex;
	width: 100%;
	font-size: 36rpx;
	font-family: PingFangSC-Semibold, PingFang SC;
	font-weight: 600;
	color: rgba(51, 51, 51, 1);
	height: 100%;
	align-items: center;
	.onePiece {
		flex: 1;
		height: 100%;
		align-items: center;
		justify-content: center;
	}
	// .threePiece{
	// 	flex: 1;
	// 	align-items: center;
	// 	height: 100%;
	// 	background:rgba(244,244,244,1);
	// 	justify-content: center;
	// }
}
.content {
	width: 702rpx;
	height: 368rpx;
	background: rgba(255, 255, 255, 1);
	margin: auto;
	display: flex;
	.oneLeft {
		height: 100%;
		border-left: 1rpx solid rgba(238, 238, 238, 1);
		border-right: 1rpx solid rgba(238, 238, 238, 1);
		width: 96rpx;
		.one {
			height: 172rpx;
			width: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			border-bottom: 1rpx solid rgba(238, 238, 238, 1);
			image {
				width: 32rpx;
				height: 32rpx;
				margin-bottom: 6rpx;
			}
			text {
				font-size: 24rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(51, 51, 51, 1);
			}
		}
		.two,
		.three {
			width: 100%;
			height: 97rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			font-size: 24rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(51, 51, 51, 1);
			border-bottom: 1rpx solid rgba(238, 238, 238, 1);
		}
	}
	.twoLeft {
		height: 100%;
		border-right: 1rpx solid rgba(238, 238, 238, 1);
		display: flex;
		flex-direction: column;
		image {
			width: 84rpx;
			height: 84rpx;
			margin-bottom: 12rpx;
		}
		.hedaLine {
			display: flex;
			height: 172rpx;
			view {
				display: flex;
				width: 100%;
				height: 100%;
				flex-direction: column;
				align-items: center;
				justify-content: center;
			}
		}
		.nums {
			display: flex;
			width: 100%;
			height: 97rpx;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			font-size: 36rpx;
			font-family: PingFangSC-Semibold, PingFang SC;
			font-weight: 600;
			color: rgba(51, 51, 51, 1);
		}
	}
}
.tabList {
	width: 50%;
	height: 62rpx;
	display: flex;
	justify-content: space-between;
	margin: auto;
	align-items: center;
	text {
		display: block;
		width: 60rpx;
		height: 6rpx;
		background: rgba(238, 238, 238, 1);
		border-radius: 3rpx;
	}
}
.showgreen {
	width: 60rpx;
	height: 6rpx;
	background: rgba(0, 193, 92, 1) !important;
	border-radius: 3rpx;
}
.attention {
	display: flex;
	flex-direction: column;
	height: 670rpx;
	width: 100%;
	font-size: 24rpx;
	align-items: center;
	justify-content: center;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: rgba(153, 153, 153, 1);
	line-height: 33rpx;
}
.footButton {
	display: flex;
	.today {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		flex: 1;
		text {
			font-size: 24rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(51, 51, 51, 1);
		}
		image {
			width: 44rpx;
			height: 44rpx;
			margin-bottom: 8rpx;
		}
	}
}
.bgc-green {
	width: 686rpx;
	height: 76rpx;
	background: rgba(0, 193, 92, 1);
	border-radius: 4rpx;
	margin: auto;
	line-height: 76rpx;
	text-align: center;
	font-size: 36rpx;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: rgba(255, 255, 255, 1);
	margin-top: 24rpx;
}
.golf-text {
	display: block;
	width: 100%;
	height: 33rpx;
	font-size: 24rpx;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: rgba(153, 153, 153, 1);
	line-height: 33rpx;
	text-align: center;
}
.golf-btn {
	width: 564rpx;
	height: 98rpx;
	// bottom: 24rpx;
	// position: absolute;
	// left: 24rpx;
	// background:rgba(13,213,97,1);
	border-radius: 6px;

	/* 		display: flex;
			flex-direction: column;
			align-items: center; */
	button {
		background: rgba(13, 213, 97, 1);
	}
}

.golf-btn button {
	border-radius: 6rpx;
	font-size: 36rpx;
	font-family: PingFangSC-Regular, PingFang SC;
	font-weight: 400;
	color: rgba(255, 255, 255, 1);
}
</style>
